@extends('layouts.user')
@section('title', '消息通知')

@section('lift-contaier')
    <div class="box">
        <div class="padding-md">
            <div class="list-group text-center">
                @include('include.user.nav', ['ac' => 'notify'])
            </div>
        </div>
    </div>
@endsection

@section('right-contaier')
    <div class="panel panel-default padding-md">
        <div class="panel-body ">
            <h2>
                <i class="fa fa-cog" aria-hidden="true"></i> Email 通知设置</h2>
            <hr>
            <form class="form-horizontal" method="POST" action="{{url('/user/update/notify')}}" accept-charset="UTF-8">
                {{csrf_field()}}
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-3 control-label">新回复时接收邮件？</label>
                    <div class="col-xs-4">
                        <label style="margin-top: 5px">
                            <input class="switch slider-icon switch-primary" type="checkbox" name="notify" {{Auth::user()->notify == 1 ? 'checked' : ''}}>
                            <span class="text"></span>
                        </label>
                    </div>
                </div>
                <br><br><div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input class="btn btn-primary btn-lg" id="user-edit-submit" type="submit" value="应用修改">
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection

@section('js-document')
@endsection